import request from '../../../request'

export function getSongDetail(id){
    return request({
        url:`http://123.207.32.32:9001/song/detail?ids=${id}`,
    })
}
export function getLyric(id){
    return request({
        url:`http://123.207.32.32:9001/lyric?id=${id}`
    })
}

export function getSongsTrancks(id=3778678){
    return request({
        url:`http://123.207.32.32:9001/playlist/detail/dynamic?id=${id}`
    })
    // res.playlist.trackIds.id
}
export function getSearchMusic(keywords){
    return request({
        url:'http://123.207.32.32:9001/search',
        params:{
            keywords:keywords,
            type:1,
            limit:5
        }
    })
}